<ul class="nav nav-tabs">
	<li><a href="javascript:;" ng-click="access_json('core/wxapp.list/list')">返回小程序列表</a></li>
</ul>
<div >
	<div class="panel panel-default form-horizontal">
		<div class="panel-heading">上传小程序</div>
		<div class="panel-body">
			<div class="form-group text-center">
				<div class="col-sm-12">
					<div id="wait_sq" class="today" style="padding:5px"></div>
					<div id="show_title" class="today" style="padding:5px">正在排队获取二维码，请耐心等待！</div>
					<div id="showewm" style="margin-top:.5em;">
						<img ng-src="{{tomedia(pagedata.item.ewm) || '../core/resource/images/loading.gif'}}" class="img-responsive img-thumbnail" width="150" />
					</div>
					<div class="help-block" ></div>
					<!--<div id="post_wxapp"><button  class="btn btn-primary" ng-click="post(pagedata.item,'get')">提交上传</button></div>
					<div id="refresh_ewm" style="display:none;"><button  class="btn btn-primary" ng-click="access('get')">重新获取</button></div>-->
				</div>
			</div>
		</div>
	</div>
</div>
<script>
scope.get('ewm',function(result){
	scope.pagedata.item=result.item;
	$('#show_title').hide();
	scope.count_down(20,'wait_sq','秒后失效，请及时扫码，并确认授权！',function(){
		window.scope.pagedata.item.ewm=false;
		$('#showewm').hide();
		scope.count_down(5,'wait_sq','秒后自动开始上传！',function(){
			$('#wait_sq').text('上传中，请勿关闭当前窗口... ...');
			scope.post(scope.pagedata.item,'get');
		});
		$('#wait_sq').text('请等待... ...');
		$('#refresh_ewm').show();
		$('#post_wxapp').hide();
	});
});

</script>